#pragma once

#define MAXPAGE 10
/////////////////////////////////////////////////////////////////////////////
// TabSheet window

class TabSheet : public CTabCtrl
{
// Construction
public:
	TabSheet();

// Attributes
private:
	CDialog* m_pPages[MAXPAGE];
	int m_nNumOfPages;
	int m_nCurrentPage;
	LPCTSTR m_Title[MAXPAGE];
	UINT m_IDD[MAXPAGE];
// Operations
public:

	bool AddPage(LPCTSTR title, CDialog *pDialog,UINT ID);
	void Show();
	void SetRect();
	int GetCurrentPage(){return m_nCurrentPage;}
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(TabSheet)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~TabSheet();

	// Generated message map functions
protected:
	//{{AFX_MSG(TabSheet)
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};